package com.learn.mvc.entity;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;

public class President {

    @Size(min = 3, max = 18)
    @Email
    private String email;

    public President() {
    }

    @Override
    public String toString() {
        return "President{" +
                "email='" + email + '\'' +
                '}';
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
